package org.ejc.persist.model;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class CountryCode implements Serializable {

    /** identifier field */
    private Integer countryId;

    /** nullable persistent field */
    private String countryIsoCode;

    /** persistent field */
    private Set addresses;

    /** full constructor */
    public CountryCode(Integer countryId, String countryIsoCode, Set addresses) {
        this.countryId = countryId;
        this.countryIsoCode = countryIsoCode;
        this.addresses = addresses;
    }

    /** default constructor */
    public CountryCode() {
    }

    /** minimal constructor */
    public CountryCode(Integer countryId, Set addresses) {
        this.countryId = countryId;
        this.addresses = addresses;
    }

    public Integer getCountryId() {
        return this.countryId;
    }

    public void setCountryId(Integer countryId) {
        this.countryId = countryId;
    }

    public String getCountryIsoCode() {
        return this.countryIsoCode;
    }

    public void setCountryIsoCode(String countryIsoCode) {
        this.countryIsoCode = countryIsoCode;
    }

    public Set getAddresses() {
        return this.addresses;
    }

    public void setAddresses(Set addresses) {
        this.addresses = addresses;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("countryId", getCountryId())
            .toString();
    }

}
